package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.math.BigDecimal;
import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.SocDifferenceExample.E_COMPANY_DIFFERENCE;
import static org.jsola.hr.example.SocDifferenceExample.E_COMPANY_ID;
import static org.jsola.hr.example.SocDifferenceExample.E_DIFFERENCE_NAME;
import static org.jsola.hr.example.SocDifferenceExample.E_EMP_ID;
import static org.jsola.hr.example.SocDifferenceExample.E_MONTH_ID;
import static org.jsola.hr.example.SocDifferenceExample.E_PERSONAL_DIFFERENCE;
import static org.jsola.hr.example.SocDifferenceExample.E_SOC_INFO_ID;
import static org.jsola.hr.example.SocDifferenceExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.SocDifferenceExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.SocDifferenceExample.M_DIFFERENCE_NAME_MAX;
import static org.jsola.hr.example.SocDifferenceExample.M_DIFFERENCE_NAME_NOT_NULL;
import static org.jsola.hr.example.SocDifferenceExample.M_EMP_ID_MAX;
import static org.jsola.hr.example.SocDifferenceExample.M_EMP_ID_NOT_NULL;
import static org.jsola.hr.example.SocDifferenceExample.M_MONTH_ID_MAX;
import static org.jsola.hr.example.SocDifferenceExample.M_MONTH_ID_NOT_NULL;
import static org.jsola.hr.example.SocDifferenceExample.M_SOC_INFO_ID_MAX;
import static org.jsola.hr.example.SocDifferenceExample.M_SOC_INFO_ID_NOT_NULL;
import static org.jsola.hr.example.SocDifferenceExample.N_COMPANY_DIFFERENCE;
import static org.jsola.hr.example.SocDifferenceExample.N_COMPANY_ID;
import static org.jsola.hr.example.SocDifferenceExample.N_DIFFERENCE_NAME;
import static org.jsola.hr.example.SocDifferenceExample.N_EMP_ID;
import static org.jsola.hr.example.SocDifferenceExample.N_MONTH_ID;
import static org.jsola.hr.example.SocDifferenceExample.N_PERSONAL_DIFFERENCE;
import static org.jsola.hr.example.SocDifferenceExample.N_SOC_INFO_ID;

/**
 * 员工参保差额费用记录
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【员工参保差额费用记录】的参数")
@Data
public class SocDifferenceAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_MONTH_ID, example = E_MONTH_ID, required = true)
    @NotNull(message = M_MONTH_ID_NOT_NULL)
    @Length(max = 32, message = M_MONTH_ID_MAX)
    private String monthId;

    @ApiModelProperty(notes = N_SOC_INFO_ID, example = E_SOC_INFO_ID, required = true)
    @NotNull(message = M_SOC_INFO_ID_NOT_NULL)
    @Length(max = 32, message = M_SOC_INFO_ID_MAX)
    private String socInfoId;

    @ApiModelProperty(notes = N_DIFFERENCE_NAME, example = E_DIFFERENCE_NAME, required = true)
    @NotNull(message = M_DIFFERENCE_NAME_NOT_NULL)
    @Length(max = 50, message = M_DIFFERENCE_NAME_MAX)
    private String differenceName;

    @ApiModelProperty(notes = N_PERSONAL_DIFFERENCE, example = E_PERSONAL_DIFFERENCE)
    private BigDecimal personalDifference;

    @ApiModelProperty(notes = N_COMPANY_DIFFERENCE, example = E_COMPANY_DIFFERENCE)
    private BigDecimal companyDifference;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID, required = true)
    @NotNull(message = M_EMP_ID_NOT_NULL)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;


}

